const app = getApp()
Page({
  data: {
    val: '',
    //轮播图数据
    swiperList: [{
        link: "",
        "imgSrc": "../../static/images/swpier_pic/pic1.jpg"
      },
      {
        link: "",
        "imgSrc": "../../static/images/swpier_pic/pic2.jpg"
      },
      {
        link: "",
        "imgSrc": "../../static/images/swpier_pic/pic3.jpg"
      },
      {
        link: "",
        "imgSrc": "../../static/images/swpier_pic/pic4.jpg"
      },
    ],
    // 轮播图数据 结束
    // 垃圾分类标准 数据 开始
    rubbishBox_list: [{
      src: "/static/images/rubbish/rubbish1.png",
      type: "khsw"
    }, {
      src: "/static/images/rubbish/rubbish2.png",
      type: "cylj"
    }, {
      src: "/static/images/rubbish/rubbish3.png",
      type: "yhlj"
    }, {
      src: "/static/images/rubbish/rubbish4.png",
      type: "qtlj"
    }],
    // 垃圾分类标准 数据 结束
  },
  cardClick(e) {
    let type = e.detail.type
    wx.navigateTo({
      url: `/pages/detail/detail?type=${type}`
    })
  },
})